<%@ Register TagPrefix="CA" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<%@ Register TagPrefix="CP" Namespace="CommunityServer.ControlPanel.Controls" Assembly="CommunityServer.Web" %>
<%@ Page language="c#" Codebehind="JobsReport.aspx.cs" AutoEventWireup="false" Inherits="CommunityServer.ControlPanel.Tools.JobsReport" %>
<cp:controlpanelselectednavigation selectednavitem="CommonTasks" runat="server" id="SelectedNavigation1" />
<cs:mpcontainer runat="server" id="MPContainer" thememasterfile="SetupControlPanelMaster.ascx">
	<cs:mpcontent id="DescriptionRegion" runat="server">
		<cp:resourcecontrol id="RegionTitle" runat="Server" resourcename="CP_Tools_JobsReport_Title"></cp:resourcecontrol>
	</cs:mpcontent>
	<cs:mpcontent id="TaskRegion" runat="Server">
		<DIV class="CommonDescription">
			<cp:resourcecontrol id="Resourcecontrol1" runat="Server" resourcename="CP_Tools_JobsReport_Description"></cp:resourcecontrol></DIV>
		<DIV class="CommonGroupedContentArea">
			<H3 class="CommonSubTitle">
				<cp:resourcecontrol id="Resourcecontrol21" runat="server" resourcename="CP_Tools_JobsReport_Service"></cp:resourcecontrol></H3>
			<UL class="CommonFloatList">
				<LI>
					<cp:resourcecontrol id="Resourcecontrol10" runat="server" resourcename="CP_Tools_JobsReport_Created"></cp:resourcecontrol>&nbsp;
					<asp:label id="Created" runat="server"></asp:label>
				<LI>
					<cp:resourcecontrol id="Resourcecontrol6" runat="server" resourcename="CP_Tools_JobsReport_LastStart"></cp:resourcecontrol>&nbsp;
					<asp:label id="LastStart" runat="server"></asp:label>
				<LI>
					<cp:resourcecontrol id="Resourcecontrol7" runat="server" resourcename="CP_Tools_JobsReport_LastStop"></cp:resourcecontrol>&nbsp;
					<asp:label id="LastStop" runat="server"></asp:label>
				<LI>
					<cp:resourcecontrol id="Resourcecontrol8" runat="server" resourcename="CP_Tools_JobsReport_IsRunning"></cp:resourcecontrol>&nbsp;
					<asp:label id="IsRunning" runat="server"></asp:label>
				<LI>
					<cp:resourcecontrol id="Resourcecontrol9" runat="server" resourcename="CP_Tools_JobsReport_Interval"></cp:resourcecontrol>&nbsp;
					<asp:label id="Minutes" runat="server"></asp:label>&nbsp;
					<cp:resourcecontrol id="Resourcecontrol22" runat="server" resourcename="CP_Tools_JobsReport_Minutes"></cp:resourcecontrol>
				</LI>
			</UL>
		</DIV>
		<asp:repeater id="SharedThreadJobRepeater" runat="server">
			<headertemplate>
				<div class="CommonGroupedContentArea">
					<h3 class="CommonSubTitle">
						<cp:resourcecontrol runat="server" resourcename="CP_Tools_JobsReport_JobsSharingThread" id="Resourcecontrol11" /></h3>
					<div class="CommonListArea">
						<table id="Listing" cellspacing="0" cellpadding="0" border="0" width="100%">
							<thead>
								<tr>
									<th class="CommonListHeaderLeftMost">
										<cp:resourcecontrol runat="server" resourcename="CP_Tools_JobsReport_JobType" id="Resourcecontrol12" /></th>
									<th class="CommonListHeader">
										<cp:resourcecontrol runat="server" resourcename="CP_Tools_JobsReport_JobEnabled" id="Resourcecontrol2" /></th>
									<th class="CommonListHeader">
										<cp:resourcecontrol runat="server" resourcename="CP_Tools_JobsReport_JobIsRunning" id="Resourcecontrol3" /></th>
									<th class="CommonListHeader">
										<cp:resourcecontrol runat="server" resourcename="CP_Tools_JobsReport_JobStart" id="Resourcecontrol4" /></th>
									<th class="CommonListHeader">
										<cp:resourcecontrol runat="server" resourcename="CP_Tools_JobsReport_JobEnd" id="Resourcecontrol5" /></th>
									<th class="CommonListHeader">
										<cp:resourcecontrol runat="server" resourcename="CP_Tools_JobsReport_JobSuccess" id="Resourcecontrol13" /></th>
								</tr>
							</thead>
			</headertemplate>
			<itemtemplate>
				<tr>
					<td class="CommonListCellLeftMost"><%# DataBinder.Eval(Container.DataItem, "JobType") %></td>
					<td class="CommonListCell"><%# CommunityServer.ControlPanel.Components.ResourceManager.GetString(DataBinder.Eval(Container.DataItem, "Enabled").ToString()) %></td>
					<td class="CommonListCell"><%# Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "IsRunning")) ? "<b>" + CommunityServer.ControlPanel.Components.ResourceManager.GetString("True") + "</b>" : CommunityServer.ControlPanel.Components.ResourceManager.GetString("False") %></td>
					<td class="CommonListCell"><%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "LastStarted")) == DateTime.MinValue ? "&nbsp;" : Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "LastStarted")).ToString() %></td>
					<td class="CommonListCell"><%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "LastEnd")) == DateTime.MinValue ? "&nbsp;" : Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "LastEnd")).ToString() %></td>
					<td class="CommonListCell"><%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "LastSuccess")) == DateTime.MinValue ? "&nbsp;" : Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "LastSuccess")).ToString() %></td>
				</tr>
			</itemtemplate>
			<footertemplate>
				</table>
				</div>
				</div>
			</footertemplate>
		</asp:repeater>
		<asp:repeater id="SingleThreadJobRepeater" runat="server">
			<headertemplate>
				<div class="CommonGroupedContentArea">
					<h3 class="CommonSubTitle">
						<cp:resourcecontrol runat="server" resourcename="CP_Tools_JobsReport_JobsOwnThread" id="Resourcecontrol14" /></h3>
					<div class="CommonListArea">
						<table id="Listing" cellspacing="0" cellpadding="0" border="0" width="100%">
							<thead>
								<tr>
									<th class="CommonListHeaderLeftMost">
										<cp:resourcecontrol runat="server" resourcename="CP_Tools_JobsReport_JobType" id="Resourcecontrol15" /></th>
									<th class="CommonListHeader">
										<cp:resourcecontrol runat="server" resourcename="CP_Tools_JobsReport_JobEnabled" id="Resourcecontrol16" /></th>
									<th class="CommonListHeader">
										<cp:resourcecontrol runat="server" resourcename="CP_Tools_JobsReport_JobIsRunning" id="Resourcecontrol17" /></th>
									<th class="CommonListHeader">
										<cp:resourcecontrol runat="server" resourcename="CP_Tools_JobsReport_JobStart" id="Resourcecontrol18" /></th>
									<th class="CommonListHeader">
										<cp:resourcecontrol runat="server" resourcename="CP_Tools_JobsReport_JobEnd" id="Resourcecontrol19" /></th>
									<th class="CommonListHeader">
										<cp:resourcecontrol runat="server" resourcename="CP_Tools_JobsReport_JobSuccess" id="Resourcecontrol20" /></th>
								</tr>
							</thead>
			</headertemplate>
			<itemtemplate>
				<tr>
					<td class="CommonListCellLeftMost"><%# DataBinder.Eval(Container.DataItem, "JobType") %></td>
					<td class="CommonListCell"><%# CommunityServer.ControlPanel.Components.ResourceManager.GetString(DataBinder.Eval(Container.DataItem, "Enabled").ToString()) %></td>
					<td class="CommonListCell"><%# Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "IsRunning")) ? "<b>" + CommunityServer.ControlPanel.Components.ResourceManager.GetString("True") + "</b>" : CommunityServer.ControlPanel.Components.ResourceManager.GetString("False") %></td>
					<td class="CommonListCell"><%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "LastStarted")) == DateTime.MinValue ? "&nbsp;" : Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "LastStarted")).ToString() %></td>
					<td class="CommonListCell"><%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "LastEnd")) == DateTime.MinValue ? "&nbsp;" : Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "LastEnd")).ToString() %></td>
					<td class="CommonListCell"><%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "LastSuccess")) == DateTime.MinValue ? "&nbsp;" : Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "LastSuccess")).ToString() %></td>
				</tr>
			</itemtemplate>
			<footertemplate>
				</table>
				</div>
				</div>
			</footertemplate>
		</asp:repeater>
	</cs:mpcontent>
</cs:mpcontainer>
